/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youbo.entity.ApiV1Entity;
import com.youbo.entity.OrderMxEntity;
import com.youbo.form.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author macy
 */
@Mapper
public interface ApiV1Dao extends BaseMapper<ApiV1Entity> {



    Integer clrOrderMx();

    Long queryNextKey(@Param("key")String key,@Param("tableName")String tableName);


    Integer importBrOrder(@Param("brId") Long brId,@Param("orderId") Long orderId,@Param("date") String date);


    List<Detail> queryWaitPay(@Param("orderId") Long orderId);

    List<Dept> queryDept();
    List<Dept2> todayRegisterGetDepts();




    List<Doctor> queryDoctors(@Param("ksdm") String ksdm);

    List<Doctor2> todayRegisterGetDoctors(@Param("ksdm") String ksdm,@Param("week") String week,@Param("sdate") String sdate,@Param("edate") String edate,@Param("pm") String pm);



    Integer queryGhCsz();
    Integer queryGhYz();
    Integer queryGhFp(@Param("sfz") String sfz);

    HashMap<String,Object> queryGhf(@Param("ksdm") String ksdm,@Param("week") String week,@Param("pm") String pm);

    HashMap<String,Object> summary(@Param("sdate") String sdate,@Param("edate") String edate);

    List<HashMap<String,Object>> dailySummary(@Param("sdate") String sdate,@Param("edate") String edate);


    List<HashMap<String,Object>> detail(@Param("sdate") String sdate,@Param("edate") String edate);


    HashMap<String,Object> reconciliation(@Param("tradeNo") String tradeNo);


    List<HashMap<String,Object>> queryHospitalizationRecord(@Param("sfzh") String sfzh,@Param("sdate") String sdate,@Param("edate") String edate);




    HashMap<String,Object> queryHospitalization(@Param("zyh") String zyh);


    List<HashMap<String,Object>> queryHospitalizationDetail(@Param("zyh") String zyh);


    List<Detail> queryOrderMxByBrid(@Param("brid") String brid,@Param("orderId")String orderId);

    HashMap<String, Object> statistics(@Param("date1") String date1,@Param("date2") String date2);



}